// *********************************************************
//      Copyright (c) Kosta Gaitanis
//      All rights reserved
//
//      k.gaitanis@gmail.com
//
// *********************************************************

#ifndef TEXTURELISTWIDGET_H
#define TEXTURELISTWIDGET_H

#include <QComboBox>
#include "Texture.h"
#include "GUI/CollapsibleWidget.h"

class TextureListWidget : public CollapsibleWidget
{
    Q_OBJECT
public:
    TextureListWidget(QWidget *parent = 0);
    void addTexture(const Texture* texture);

    void setCurrentTexture(const Texture* texture);

signals:
    void textureChanged(const Texture* texture);

public slots:
    void onCurrentIndexChanged(int index);

private:
    Q_DISABLE_COPY(TextureListWidget)

    const Texture* getCurrentTexture() const;

    QComboBox *m_combo;
};

#endif // TEXTURELISTWIDGET_H
